package com.mathlearning.auth.dto.learning;

import java.time.LocalDateTime;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CourseListResponse {
    private List<CourseItem> list;
    private Long total;
    private Integer page;
    private Integer pageSize;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class CourseItem {
        private Long id;
        private Long categoryId;
        private String categoryName;
        private String title;
        private String description;
        private String cover;
        private String difficulty;
        private Integer videoCount;
        private Integer studentCount;
        private InstructorInfo instructor;
        private Integer progress;
        private LocalDateTime createdAt;
    }
}




